namespace CSharpPro._1020;

public class Demo
{
    public void TestPrint()
    {
        int[] arr = new int[] { 5 };
        arr[1] = 1;
        arr[4] = 5;


        //二维数组
        int[,] arr4 = new int[2,3];
        arr4[0,0] = 1;
        arr4[1,2] = 5;

        int[] arr6 ={11,22,3,4,55 };
        Array.Sort(arr6);//升序
        Array.Reverse(arr6);//降序
        Console.WriteLine();
        foreach (int i in arr)
        {
            Console.Write(i+"\t");
        }
    }
}